package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2017/6/7 0007.
 */

public class PushInfoRequestParams extends BaseRequestParams implements Parcelable {

    private static final String SERVICE = "get_push_list";

    /**
     * 玩家角色所在区服ID
     */
    @SerializedName("server_id")
    private String serverId;

    /**
     * 玩家角色ID
     */
    @SerializedName("role_id")
    private String roleId;

    /**
     * 最后更新时间
     */
    @SerializedName("last_time")
    private String lastTime;

    @Override
    public String getServiceString() {
        return SERVICE;
    }

    public String getServerId() {
        return serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getLastTime() {
        return lastTime;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.serverId);
        dest.writeString(this.roleId);
        dest.writeString(this.lastTime);
    }

    public PushInfoRequestParams() {
    }

    protected PushInfoRequestParams(Parcel in) {
        super(in);
        this.serverId = in.readString();
        this.roleId = in.readString();
        this.lastTime = in.readString();
    }

    public static final Creator<PushInfoRequestParams> CREATOR = new Creator<PushInfoRequestParams>() {
        @Override
        public PushInfoRequestParams createFromParcel(Parcel source) {
            return new PushInfoRequestParams(source);
        }

        @Override
        public PushInfoRequestParams[] newArray(int size) {
            return new PushInfoRequestParams[size];
        }
    };
}
